//
//  MantisChatHeadView.m
//  NLProjectFrameworkDemo
//
//  Created by iosdeveloper on 2020/4/30.
//  Copyright © 2020 yj_zhang. All rights reserved.
//

#import "MantisChatHeadView.h"
#import "CommonHeader.h"


@implementation MantisChatHeadView
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = kDefaultBgColor;
        [self setUpView];
    }
    return self;
}

-(void)setUpView{
    UIImageView*remindImgView =[UIImageView new];
    remindImgView.image = [UIImage imageNamed:@"chat_remind_icon"];
    [self addSubview:remindImgView];
    CGFloat width=adaptWidth750(30);
    [remindImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(adaptWidth750(20));
        make.centerY.equalTo(self);
        make.width.height.mas_equalTo(width);
    }];
    
    
    UILabel*contentLabel = [UILabel new];
    self.contentLabel=contentLabel;
    contentLabel.text=@"您好，请填写以下信息，我们会尽快和您联系";
    contentLabel.font =KIMFontRegularSize(12);
    contentLabel.textColor=[UIColor jk_colorWithHexString:@"#A1A6AB"];
    [self addSubview:contentLabel];
    
    [contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(remindImgView.mas_right).offset(adaptWidth750(10));
        make.centerY.equalTo(remindImgView);
    }];

    
}


-(void)reloadHeadView:(ConnectConfigChatModel*)chatModel{
    
    
    
}











/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
